package com.company.crm.settings.service.impl;

import com.company.crm.settings.domain.DicValue;
import com.company.crm.settings.mapper.DicValueMapper;
import com.company.crm.settings.service.DicValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：王磊栋
 * 2021/4/16
 */
@Service
public class DicValueServiceImpl implements DicValueService {
    @Autowired
    private DicValueMapper dicValueMapper;
    @Override
    public List<DicValue> selectAllDicValues() {
        return dicValueMapper.selectAllDicValues();
    }

    @Override
    public int insertDicValues(DicValue dicValue) {
        return dicValueMapper.insertDicValues(dicValue);
    }

    @Override
    public DicValue selectDicValuesById(String id) {
        return dicValueMapper.selectDicValuesById(id);
    }

    @Override
    public int updateDicValue(DicValue dicValue) {
        return dicValueMapper.updateDicValue(dicValue);
    }

    @Override
    public int logicDeleteByID(String[] ids) {
        return dicValueMapper.logicDeleteByID(ids);
    }

    @Override
    public List<DicValue> selectDicValueByCodeType(String codeType) {
        return dicValueMapper.selectDicValueByCodeType(codeType);
    }
}
